<?php

/**
 * Project: CrazyPoems
 * Author: Alexandru
 * Date: 20/10/2008
 * File: db.php
 */

define('DB_PREFIX','');
define('TABLE_USERS', DB_PREFIX.'users');
define('TABLE_CATEGORIES', DB_PREFIX.'categories');
define('TABLE_POEMS', DB_PREFIX.'poems');
define('TABLE_POEMS_VOTES', DB_PREFIX.'poems_votes');
define('TABLE_COMMENTS', DB_PREFIX.'comments');
define('TABLE_SITE_LINKS', DB_PREFIX.'site_links');

$dbhost = 'alexandru.es';
$dbuser = 'crazy';
$dbpass = 'cp1989';
$dbname = 'crazypoems';

$db = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to database: ' . mysql_error());
mysql_select_db($dbname);
mysql_set_charset('utf8', $db);

?>
